home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 November
/
CHIP Kasım 1998.iso
/
DRIVERS
/
CD-Rom
/
220x.exe
/
AF2.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-01-12
|
2KB
|
116 lines
ECHO OFF
cls
prompt $p$g
if "%1" == "?" goto usage
if "%1" == "at" goto inst
if "%1" == "AT" goto inst
if "%1" == "xt" goto inst
if "%1" == "XT" goto inst
if "%1" == "2at" goto inst
if "%1" == "2AT" goto inst
if "%1" == "2xt" goto inst
if "%1" == "2XT" goto inst
if "%1" == "3at" goto inst
if "%1" == "3AT" goto inst
if "%1" == "3xt" goto inst
if "%1" == "3XT" goto inst
if "%1" == "4at" goto inst
if "%1" == "4AT" goto inst
if "%1" == "4xt" goto inst
if "%1" == "4XT" goto inst
sel_seq
:inst
ECHO OFF
IF EXIST AUTOEXEC.BAT DEL AUTOEXEC.BAT
IF EXIST CONFIG.SYS DEL CONFIG.SYS
IF EXIST *.NEW DEL *.NEW
cls
ECHO\
ECHO NOTICE: If the DOS version is 5.0, MS-DOS Extensions is ignored
ECHO as Incorrect DOS version.
ECHO\
ECHO Two files will be copied from the boot disk to Library disk if exist.
ECHO Then the files will be modified.
ECHO\
ECHO ON
COPY A:\AUTOEXEC.BAT
COPY A:\CONFIG.SYS
ECHO OFF
ECHO\
ECHO AUTOEXEC.BAT and CONFIG.SYS files will be modified. Wait for a while.
shell3 del_dvr
shell3 del_mscd
ECHO\
ECHO ON
COPY CONFIG.NEW+CONFIG.%1 CONFIG.NEW
ECHO OFF
ECHO\
shell3 app A:\%2
shell3 m_sys A:\%2
:take_b
ECHO OFF
CLS
ECHO If you wish to install the driver to a disk other than the boot
echo disk, remove the boot disk from drive A, then insert the target
ECHO disk into drive A.
echo\
echo\
pause
ECHO\
ECHO Some files will be copied from Library disk to the target disk.
ECHO Continue in response to each prompt, then you can install
ECHO Sony MS-DOS CD-ROM Extensions on the target disk.
ECHO\
if "%2" == "" goto make_b
ECHO ON
MD A:\%2
echo off
:make_b
ECHO ON
COPY AUTOEXEC.BAT+AUTOEXEC.ADD A:\AUTOEXEC.BAT
COPY CONFIG.SYS A:\
COPY SONY_CDU.SYS A:\%2
COPY MSCDEX.EXE A:\%2
ECHO OFF
IF EXIST AUTOEXEC.BAT DEL AUTOEXEC.BAT
IF EXIST CONFIG.SYS DEL CONFIG.SYS
IF EXIST *.NEW DEL *.NEW
LAST_MSG A %2
goto exit
:usage
echo\
echo\
echo USAGE...
echo\
echo AF2 XX [Option] and Enter
echo\
echo XX: Your computer type, AT or XT
echo Option: Sub Directory
echo\
echo\
echo AF2 ? and Enter ; Display this message.
echo\
echo\
:exit